Encapsulate Context
نویسنده
چکیده
A system contains data that must be generally available to divergent parts of the system but we wish to avoid using long parameter lists to functions or global data. Therefore, we place the necessary data in a Context Object and pass this object from function to function. Audience Encapsulated Context is principally written for software developers designing and writing programs. The pattern was originally written for C++ developers, however examples have been reported from other languages such as Java and Smalltalk. It is believed that users of any language will find the pattern useful, although C++ developers may find the pattern of particular interest. By exploring the pattern in depth this paper offers a rigorous explanation of where the pattern occurs, the forces and the consequences of using the pattern. For reference purposes a summary section has been included at the end of the paper. Experienced developers may prefer to read the summary first before reading the entire paper.
منابع مشابه
Exploring the Concept of Method Rationale: A Conceptual Tool to Understand Method Tailoring
Systems development methods are used to express and communicate knowledge about systems and software development processes, that is, methods encapsulate knowledge. Since methods encapsulate knowledge, they also encapsulate rationale. Rationale can, in this context, be understood as the reasons and arguments for particular method prescriptions. In this chapter, we show how the combination of two...
متن کاملEncapsulating Failure Detection: From Crash to Byzantine Failures
Separating different aspects of a program, and encapsulating them inside well defined modules, is considered a good engineering discipline. This discipline is particularly desirable in the development of distributed agreement algorithms which are known to be difficult and error prone. For such algorithms, one aspect that is important to encapsulate is failure detection. In fact, a complete enca...
متن کاملMethods as Action Knowledge: Exploring the Concept of Method Rationale in Method Construction, Tailoring and Use
Systems development methods are used to express and communicate knowledge about systems and software development processes; i.e. methods encapsulate knowledge. Since methods encapsulate knowledge, they also encapsulate rationale. Rationale can in this context be understood as the reasons and arguments for particular method prescriptions. In this paper we show how the combination of two differen...
متن کاملPhil Jackson: Zen and the Counterculture Coach
As a coach educator I sometimes set my students the task of choosing their favourite coach, and critically considering the reasons for their selections. Phil Jackson is without doubt my own favourite sports coach. In this article I hope to encapsulate the essence of his coaching philosophy and practices, and some of the personal qualities that I believe set him apart from other coaches. But fir...
متن کاملApplying Web Services Technologies to the Management of Context Provisioning
For a service to be context-aware it must be able to discover and take advantage of contextual information like device capabilities, user surroundings, or the user’s current preferences. Ensuring the availability of this information according to predefined quality parameters requires an adequate management of the whole process of sensing, interpreting, iteratively refining and disseminating lar...
متن کاملUsing Collaborations to Encapsulate Features? An Explorative Study
A feature is a program characteristic visible to an end-user. Current research strives to encapsulate the implementation of a feature in a module. Jak is a language extension to Java that allows programmers to encapsulate implementations of features in the form of a collaboration. In prior work, we and others faced problems when using collaborations in Jak and alike languages with too high expe...
متن کامل